/**
 * @name: isCollapse
 * @author: win10
 * @date: 2024/3/1 11:02
 * @description：isCollapse
 * @update: 2024/3/1 11:02
 */
import { defineStore } from "pinia";
import { ref } from "vue";
export const isCollapseStore = defineStore("isCollapseStore", {
  id: "isCollapse",
  state: () => ({
    // 设置默认值
    isCollapse: false,
  }),
  actions: {
    setIsCollapse(isCollapse) {
      console.log("isCollapse", isCollapse);
      this.isCollapse = isCollapse;
    },
    getIsCollapse() {
      return this.isCollapse;
    },
    clearIsCollapse() {
      this.isCollapse = "";
    },
  },
  persist: true,
});
